projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1432d23
)
GtkFileChooser: Use a better busy cursor
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 1 May 2015 02:40:45 +0000
(22:40 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 1 May 2015 02:43:50 +0000
(22:43 -0400)
It is possible to interact with the file chooser while
things are loading, so use a cursor that indicates this,
if we have one.
gtk/gtkfilechooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechooserwidget.c
b/gtk/gtkfilechooserwidget.c
index 9daf923c3e3fb2015c493c939beff322da56ec7f..46abe232113f6fcf4624e144d28e23eb56abb218 100644
(file)
--- a/
gtk/gtkfilechooserwidget.c
+++ b/
gtk/gtkfilechooserwidget.c
@@
-3454,7
+3454,11
@@
set_busy_cursor (GtkFileChooserWidget *impl,
display = gtk_widget_get_display (widget);
if (busy)
- cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+ {
+ cursor = gdk_cursor_new_from_name (display, "left_ptr_watch");
+ if (cursor == NULL)
+ cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+ }
else
cursor = NULL;